//
//  SelfSizeTools.m
//  UI10-SelfSize
//
//  Created by 韩旭 on 16/7/27.
//  Copyright © 2016年 lanou. All rights reserved.
//
#import "SelfSizeTools.h"
@implementation SelfSizeTools
+ (CGFloat)selfSizeHeightWithString:(NSString *)string Width:(CGFloat)width Font:(UIFont *)font {
    CGRect newRect = [string boundingRectWithSize:CGSizeMake(0, width) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : font} context:nil];
    return newRect.size.width;
}
@end
